using System;
using System.Web.UI.WebControls;
using TPG.SharePoint.Workflow;

namespace $rootnamespace$
{
    public partial class $safeitemname$ 
        : InstantiationPage
    {
        protected TextBox MyInstantiationField = null;

        protected override void OnLoad(EventArgs e)
        {
            if(IsPostBack == false)
            {
                string data = GetAssociationData();
                MyInstantiationField.Text = data;
            }
            base.OnLoad(e);
        }

        protected void OkButton_Click(object sender, EventArgs e)
        {
            string instantiationData = MyInstantiationField.Text;
            CommitInstantiation(instantiationData);
        }

        protected void CancelButton_Click(object sender, EventArgs e)
        {
            CancelInstantiation();
        }
    }
}